﻿using System;
using System.Collections.Generic;

using System.Text;
using System.IO;

namespace ShapeMergeFactory
{
   internal class ShapeFileRecordHead
    {
        public int recordNumber;
        public int recordLength;
        public ShapeFileRecordHead()
        {
            this.recordLength = 0;
            this.recordNumber = 0;
        }
        public void ReadRecordHeard(ShapeBinaryReader shapeBinaryReader)
        {
            recordNumber = shapeBinaryReader.BinaryReadBigEndian();
            recordLength = shapeBinaryReader.BinaryReadBigEndian();
        }
        public void WriteRecordHeard(ShapeBinaryWriter shapeBinaryWriter)
        {
            shapeBinaryWriter.BinaryWriteBigEndian(recordNumber);
            shapeBinaryWriter.BinaryWriteBigEndian(recordLength);
        }
    }
}
